package _1007.genericity;

interface Convertor<T,R>{
	R convert(T t);
}


public class GenericityDemo {
	public static void main(String[] args) {
		Convertor<Integer,String> con = new Convertor<Integer,String>() {
			@Override
			public String convert(Integer t) {
//				return String.valueOf(t);
				return t + "";
			}
		};
		
		String convert = con.convert(123);
	}
}
